﻿@{
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.nbGridFor<Dish>(s =>
 {

     s.Action("List");
     s.layoutH(86);
     s.ExtParam(new { IsFilter = "T" });
     s.Columns(c =>
     {
         c.Bind(e => e.Id).IsKey();
         c.BindEnum(m => m.MainMaterialType, "MaterialCategory").AsSearch();
         c.BindEnum(m => m.Category, "DishType").AsSearch();
         c.Bind(m => m.Name).Width(100).AsQuery().AsSearch().Align(GridAlign.Left);
         c.Bind(m => m.Cost).Width(50).Align(GridAlign.Right);
         c.Bind(m => m.ItemDesc).Width("auto").Align(GridAlign.Left).AsQuery().AsSearch();
     });
     s.Buttons(b =>
     {
         b.BindSelectButton();
         b.BindCancelButton();
     });
 }))
